home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
SaveBufferAs_MPEG.ifx.post
< prev
next >
Wrap
Text File
|
1996-03-02
|
966b
|
44 lines
/*
* SaveBufferAs_MPEG.ifx.post
* Written by Thomas Krehbiel
*
* Encode an MPEG stream from a series of frames. Uses third-party
* MPEG encoder software.
*
* Inputs:
* Word(Arg(1),1) = Sequence number
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_MPEG_'
seqnum = Word(Arg(1),1)
framemax = Word(Arg(1),2)
mfile = GETCLIP(base||'File')
newpath = GETCLIP(base||'Path')
neww = GETCLIP(base||'Width')
newh = GETCLIP(base||'Height')
xing = GETCLIP(base||'Xing')
IF RIGHT(newpath,1) ~= ':' THEN newpath = newpath || '/'
opts = ""
IF xing THEN opts = opts || '-XING'
cli = 'CON:0/0//80/MPEG_Encoder_Output/AUTO/CLOSE/SCREENIMAGEFX.1'
/*cli = 'ram:mpegoutput'*/
cmd = 'MPEG/mpeg >'cli '-h' neww '-v' newh '-a 1 -b' framemax '-s' mfile opts newpath'mpeg_temp'
ADDRESS COMMAND cmd
ADDRESS COMMAND 'Delete' newpath'mpeg_temp#? QUIET'
EXIT